package com.course.app.api.data;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * Created by Justin on 2017/5/17.
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AgendaItemDTO {
    private int part;
    private int time;
    private Type type;
    private TaskLearnDTO taskLearn;
    private TaskClassDTO taskClass;
    private TaskEventDTO taskEvent;

    public enum Type {
        LEARN(1, "自学任务"),
        CLASS(2, "线上教学"),
        EVENT(3, "线下课程");

        private int value;
        private String title;

        Type(int value, String title) {
            this.value = value;
            this.title = title;
        }

        public int getValue() {
            return value;
        }

        public String getTitle() {
            return title;
        }
    }
}
